import request from '@/utils/request';

//获取token 即 openid
export async function fakeAccountLogin(code) {
  return request(`/vehicle-api/wechat/login?code=${code}`);
}

//用户绑定
export async function bind(params) {
  return request('/vehicle-api/wechat/user/bind', {
    method: 'POST',
    data: params,
  });
}
//用户绑定
export async function unbind(params) {
  return request('/vehicle-api/wechat/user/unbind', {
    method: 'PUT',
    data: params,
  });
}

//用户绑定
export async function change_phone(params) {
  return request('/vehicle-api/wechat/user/change_phone', {
    method: 'PUT',
    data: params,
  });
}
